//
//  MKTChatMsgTextTVCellOther.m
//  MKUITestApp
//
//  Created by 苏尚进 on 2021/7/9.
//  Copyright © 2021 moon. All rights reserved.
//

#import "MKTChatMsgTextTVCellOther.h"

@implementation MKTChatMsgTextTVCellOther
- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    if (self=[super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
    }
    return self;
}
- (void)customLayoutSubviews{
    [super customLayoutSubviews];
    CGRect bounds = self.contentView.bounds;
    self.msgTextBubbleLayout.bounds = bounds;
    [self.msgTextBubbleLayout layoutItemsWithResizeItems:YES];
}
- (void)customReloadCellModel{
    [super customReloadCellModel];
    MKTChatMsgText *msg = self.chatMsg;
    self.msgTextBubbleView.textLabel.text = msg.text;
}
- (CGSize)customSizeThatFits:(CGSize)size{
    return [self.msgTextBubbleLayout sizeThatFits:size resizeItems:YES];
}
@end
